package com.asm.protocol;

import java.util.concurrent.atomic.AtomicInteger;

public class SequencedGenerator {
    //就是一个计数器，使其ID唯一
    private  static final AtomicInteger id=new AtomicInteger();
    public static int nextId(){return  id.incrementAndGet();}
}
